const axios=require('./api_config')
const get_cookie=function(data){
    return axios.post('cpquery/get_cookie',data)
}
const update_detail=function(data){
    return axios.post('cpquery/update_detail',data)
}
const after_update=function(data){
    return axios.post('cpquery/after_update',data)
}
const Get_apply_nos=function(data){
    return axios.post('cpquery/to_sync',data)
}
const front_log=function(data){
    return axios.post('user/front_log',data)
}
const front_log_img=function(data){
    return axios.post('user/front_log_img',data)
}
const verification_code=function(data){
    return axios.post('http://upload.chaojiying.net/Upload/Processing.php',data,{
        headers: { 
            'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Firefox/24.0',
            'Content-Type' : 'application/x-www-form-urlencoded' 
        },
        timeout:300000})
}

module.exports={
    get_cookie,
    update_detail,
    front_log,
    front_log_img,
    after_update,
    Get_apply_nos,
    verification_code
}